package suanfa.exam1;

import java.util.Scanner;

public class t4 {
    public static void main(String[] args) {
        System.out.println("请输入两个数");
        Scanner scanner = new Scanner(System.in);
        int sum = scanner.nextInt() + scanner.nextInt();
        System.out.println("请猜两数之和");
        System.out.println(scanner.nextInt() == sum ? "恭喜猜对了":"猜错啦,答案是:" + sum);
    }
}
